Skip to content

Conversation

@RomneyDa
Copy link
Collaborator

@RomneyDa RomneyDa commented Oct 28, 2025

Description

Instead of file operations for each individual diff, unified reject all with one file operation

First reject is before, second is after:

unified-reject-all-vscode.mp4

Summary by cubic

Make “Reject All” in VS Code instant by applying all diffs in one edit instead of per-diff operations. This speeds up large files and keeps undo history clean.

  • Bug Fixes
    • Added unifiedRejectAll() to rebuild final content and replace the document in a single atomic edit (undo stops disabled).
    • Processes removed/added ranges in reverse line order to avoid index shifts and ensure stable results.

@RomneyDa RomneyDa requested a review from a team as a code owner October 28, 2025 23:31
@RomneyDa RomneyDa requested review from Patrick-Erichsen and removed request for a team October 28, 2025 23:31
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Oct 28, 2025
@github-actions
Copy link

github-actions bot commented Oct 28, 2025

✅ Review Complete

Code Review Summary

⚠️ Continue API authentication failed. Please check your CONTINUE_API_KEY.


Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Collaborator

@Patrick-Erichsen Patrick-Erichsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Assuming this for speed + keeping undo stack clean? Based on Cubic comment

Comment on lines +610 to +614
interface LineOperation {
type: "removed" | "added";
line?: string; // Only for removed lines
range: vscode.Range;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't even know you could do define an interface inside a function lol

Kind of awkward but nbd

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Nov 4, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 4, 2025
@RomneyDa RomneyDa merged commit 399d9fe into main Nov 4, 2025
60 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Nov 4, 2025
@RomneyDa RomneyDa deleted the dallin/fix-reject-all-diffs branch November 4, 2025 06:50
@github-actions github-actions bot locked and limited conversation to collaborators Nov 4, 2025
@sestinj
Copy link
Contributor

sestinj commented Nov 7, 2025

🎉 This PR is included in version 1.32.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor

sestinj commented Nov 18, 2025

🎉 This PR is included in version 1.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm This PR has been approved by a maintainer released size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants